package com.cn.mmd.service;

import com.cn.mmd.model.CourseStuAttendance;

import java.util.List;


/**
 * Created by Administrator on 2016/7/6 0006.
 */

public interface CourseStuAttendanceService {


    /**
     * 根据课程id和学生id查看课程
     * @param courseStuAttendance
     * @return
     */
    CourseStuAttendance selectByCouIdStuId(CourseStuAttendance courseStuAttendance);

    /**
     * 添加学生
     * @param record
     * @return
     */
    int insertSelective(CourseStuAttendance record);

    /**
     * 修改
     * @param record
     * @return
     */
    int updateByPrimaryKeySelective(CourseStuAttendance record);

    /**
     * 根据学生id课程id聚合考勤
     * @param courseStuAttendance
     * @return
     */
    int countByCouIdStuId(CourseStuAttendance courseStuAttendance);

    /**
     * 根据课程查看考勤
     * @param courseStuAttendance
     * @return
     */
    List<CourseStuAttendance>selectByCouId(CourseStuAttendance courseStuAttendance);

    /**
     * 根据老师课程统计考勤的总数
     * @param courseStuAttendance
     * @return
     */
    int countLimitNum(CourseStuAttendance courseStuAttendance);
    /**
     * 根据课程统计考勤的总数
     * @param courseStuAttendance
     * @return
     */
    int countLimitNumCou(CourseStuAttendance courseStuAttendance);
    /**
     * 根据课程考勤内容统计考勤的总数
     * @param courseStuAttendance
     * @return
     */
    int countLimitNumCouA(CourseStuAttendance courseStuAttendance);
    /**
     * 根据学生统计考勤的总数
     * @param courseStuAttendance
     * @return
     */
    int countLimitNumStu(CourseStuAttendance courseStuAttendance);
    /**
     * 根据学生考勤内容统计考勤的总数
     * @param courseStuAttendance
     * @return
     */
    int countLimitNumStuA(CourseStuAttendance courseStuAttendance);

    /**
     * 根据总表
     * @return
     */
    int countLimitNumZ();

    /**
     * 根据考勤内容
     * @param courseStuAttendance
     * @return
     */
    int countLimitNumZBy(CourseStuAttendance courseStuAttendance);

}
